home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000381_jaltman2@nyc.rr.com_Fri Sep 3 11:33:49 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed1.nycmny01.us.to.verio.net!newspeer1.stngva01.us.to.verio.net!verio!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail
  2. Message-ID: <41387281.8030602@nyc.rr.com>
  3. From: Jeffrey Altman <jaltman2@nyc.rr.com>
  4. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803
  5. X-Accept-Language: en-us, en
  6. MIME-Version: 1.0
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: How do I script-->interactive "CONNECT"-->script?
  9. References: <10jgmo6sl6bjf0a@corp.supernews.com>
  10. In-Reply-To: <10jgmo6sl6bjf0a@corp.supernews.com>
  11. X-Enigmail-Version: 0.84.2.0
  12. X-Enigmail-Supports: pgp-inline, pgp-mime
  13. Content-Type: text/plain; charset=us-ascii; format=flowed
  14. Content-Transfer-Encoding: 7bit
  15. Lines: 98
  16. Date: Fri, 03 Sep 2004 13:23:21 GMT
  17. NNTP-Posting-Host: 24.193.46.55
  18. X-Complaints-To: abuse@rr.com
  19. X-Trace: twister.nyc.rr.com 1094217801 24.193.46.55 (Fri, 03 Sep 2004 09:23:21 EDT)
  20. NNTP-Posting-Date: Fri, 03 Sep 2004 09:23:21 EDT
  21. Organization: Road Runner - NYC
  22. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15148
  23.  
  24. Help is built into C-Kermit.  Try typing "HELP CONNECT" and you will
  25. get something similar to this.  (exact output is platform dependent)
  26.  
  27. Syntax: CONNECT (or C, or CQ) [ switches ]
  28.    Connect to a remote computer via the serial communications device 
  29. given in
  30.    the most recent SET PORT command, or to the network host named in the 
  31. most
  32.    recent SET HOST command.  Type the escape character followed by C to get
  33.    back to the C-Kermit prompt, or followed by ? for a list of CONNECT-mode
  34.    escape commands.  You can also assign the \Kexit verb to the key or
  35.    key-combination of your choice; by default it is assigned to Alt-x.
  36.  
  37. Other switches include:
  38.  
  39. /TRIGGER:string
  40.    One or more strings to look for that will cause automatic return to
  41.    command mode.  To specify one string, just put it right after the
  42.    colon, e.g. "/TRIGGER:Goodbye".  If the string contains any spaces, you
  43.    must enclose it in braces, e.g. "/TRIGGER:{READY TO SEND...}".  To
  44.    specify more than one trigger, use the following format:
  45.  
  46.      /TRIGGER:{{string1}{string2}...{stringn}}
  47.  
  48.    Upon return from CONNECT mode, the variable \v(trigger) is set to the
  49.    trigger string, if any, that was actually encountered.  This value, like
  50.    all other CONNECT switches applies only to the CONNECT command with which
  51.    it is given, and overrides (temporarily) any global SET TERMINAL TRIGGER
  52.    string that might be in effect.
  53.  
  54. /IDLE-LIMIT:number
  55.    The number of seconds of idle time, after which Kermit returns
  56.    automatically to command mode; default 0 (no limit).
  57.  
  58. /IDLE-INTERVAL:number
  59.    The number of seconds of idle time, after which Kermit automatically
  60.    transmits the idle string.
  61.  
  62. /IDLE-STRING:string
  63.    The string to transmit whenever the idle interval has passed.
  64.  
  65. /TIME-LIMIT:number
  66.    The maximum number of seconds for which the CONNECT session may last.
  67.    The default is 0 (no limit).  If a nonzero number is given, Kermit 
  68. returns
  69.    automatically to command mode after this many seconds.
  70.  
  71. Your escape character is Ctrl-] (ASCII 29, GS)
  72.  
  73.  
  74.  
  75. Mark J. Bailey wrote:
  76.  
  77. > I have a need to kick off a kermit script in ckermit, then, if I see a
  78. > certain string pattern I need to go interactive (on the comm stream) and
  79. > then switch back to the script when I recognize another string pattern.
  80. > What I need to do is have a script run automatically but if the prompt for
  81. > the user to change their password is seen, I need to take the session
  82. > interactive (typical CONNECT scenario) and allow the user to change their
  83. > password with the remote service, and then (ideally) when a "success"
  84. > message is seen, resume the script and carry on.  TERM (from Century
  85. > Software) has a "TERMINAL" command that does just this.  With HIPAA and
  86. > healthcare, many services (insurance companies in particular) require unique
  87. > userids and passwords and require they be changed on a pseudo-regular basis
  88. > (30-45 days).  Nothing consistent (of course!), so I need to have the script
  89. > handle this.  What we do with TERM (in another scenario - and TERM isn't an
  90. > option for this situation) is start the TERM script and then when the login
  91. > prompt is recognized, we use the TERMINAL command to switch the session
  92. > interactive so that the user can login (and change the password should that
  93. > pop up during any particular session).  When the remote service main prompt
  94. > is recognized, the TERM script resumes immediately after the TERMINAL
  95. > command.
  96. > Thanks!
  97. > Mark
  98. > ______________________________________________
  99. > Mark J. Bailey        Jobsoft Design and Development, Inc.
  100. > 277 Wilson Pike Circle, Suite 105, Brentwood, TN 37027
  101. > EMAIL: mjb@jobsoft.com  WEB: http://www.jobsoft.com/
  102. > Medimation / CardShot(tm) - http://www.medimation.com/
  103. > 615-425-0932x20 FAX:615-425-0935 CELL:615-308-9099
  104. > CONFIDENTIALITY NOTICE: This email message and any attachments are for the
  105. > sole use of the intended recipient(s) and may contain proprietary,
  106. > confidential, trade secret or privileged information.  Any unauthorized
  107. > review, use, disclosure or distribution is prohibited and may be a violation
  108. > of law.  If you are not the intended recipient or a person responsible for
  109. > delivering this message to an intended recipient, please contact the sender
  110. > by reply email and destroy all copies of the original message.
  111.  
  112. -- 
  113. -----------------
  114. This e-mail account is not read on a regular basis.
  115. Please send private responses to jaltman at mit dot edu